Since commit
ef1e27966db2 turned DashItemContainer into an StWidget,
the destroy() method overrides the ClutterActor method, which is at
the very least bad style. Instead, follow the usual pattern of using
a ::destroy handler.
https://bugzilla.gnome.org/show_bug.cgi?id=791233
this._childScale = 0;
this._childOpacity = 0;
this.animatingOut = false;
+
+ this.connect('destroy', () => {
+ this.label.destroy();
+ });
},
vfunc_allocate: function(box, flags) {
});
},
- destroy: function() {
- this.label.destroy();
- this.parent();
- },
-
animateOutAndDestroy: function() {
this.label.hide();